package com.lglbc.day18.dao;

import com.lglbc.day18.entity.Role;
import com.lglbc.day18.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 乐哥聊编程
 * @Doc 关注公众号"乐哥聊编程"获取文档和源码
 * @Date 2023/4/21
 * @Description
 */
@Mapper
public interface UserMapper {

    //根据用户名查询是否有该用户
    User queryUserByUsername(@Param("username") String username);
    //给用户绑定角色
    List<Role> getRolesByUserId(@Param("user_id") Integer user_id);
}

